/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wo.cput.pattern.mediator;

/**
 *
 * @author Administrator
 */
public class Mediator {

    ASale aSale;
    Buyer aBuy;

    public Mediator() {
    }

    public void onlineASale( ASale aSale) {
        this.aSale = aSale;

    }

      public void onlineABuy( ABuy aBuy) {
        this.aBuy = aBuy;

    }
    
    public boolean placeBid(double bid){
    double euroAmount = bid;
    return aSale.isBidAccepted(euroAmount);
    }
}
